package ExceptionLayer;

public class CustomException extends Exception
{
    private String key;

    /**
     * Constructor for objects of class CustomException
     */
    public CustomException(String _key)
    {
        key = _key;
    }

    public String getKey()
    {
        return key;
    }
    
    public String toString()
    {
        return key;
    }
}
